As long as the cable is 10/3 NM or 8/2 SE you can still use it. If it is 10/2 NM it will have to be replaced. A three wire cord is still compliant as long as the wiring method meets the above. If 10/3 NM cable was used just change out the receptacle to a four wire and make sure the EGC and neutral conductors are terminated in the panel.
All responses based on the 2011 NEC.
If you live in New Jersey click here. All other states click here.
Please check with local, county and state officials as laws may vary.
Sizing motors here. Online motor calculator here. Online calculators here.