Ahhh, this is different. Driftwood collected on the beaches is saturated with salt and needs to be thoroughly washed / soaked in freshwater. Salt can do horrible things to snake scales and skin. For the same reason one should never use beach sand for substrate in a reptile enclosure.
In the past ive only ever given them a good hose down to remove any mangrove mud that may be on them and to also remove any sand and never had a problem.