The better drivers have reverse current protection built in but if you are not sure you can always add even simple mechanical flip switches. One two pole switch for each stepper is all you need since it is enough to disconnect one wire of each winding of the stepper.