It may or may not be possible, either way its probably spending more than yuo need to for a motor this size. Then you might even get into a possition that you have to take the thing apart just to get striaght to the motor wiring.
If you can find some old copiers I was able to get a bunch of good nema 17 steppers out of them.
Heck Keling has nema 17 steppers at $14.00 for the strongest one they list.
High-Torque Stepper Motor, Stepper Motor, Driver, Stepper Motor kit, DC Servo Motor, DC Servo Motor kit, Stepper Motor Power Supply, CNC Router, Spindle, and other Components. Automation Technology Inc
They will also know which one will work best with the G540 and your machine/aplication. Give them a call they are a supporter here with good feedback. Lots of us buy from them and they have good support/warranty coverage also.
Jess
GOD Bless, and prayers for all.