That plant looks like a cryptocoryne. Although they can be grown on driftwood it's not usual to do so as cryptocorynes are heavy root feeders and like to send their roots into substrate.
If it were me, I would trim the roots down to 1-2 inches and then plant it back in the substrate.
If you want a plant attached to driftwood then anubias or java ferns are better choices.