Don’s post shows what you are looking for. NEMA17 motors are everywhere these days because of 3D printers. He has X and Y specs, including size and electrical specs. Make sure that the body length isn’t longer than what you are replacing; shorter is generally OK. You’ll want inductance to at least be similar, current capacity to be no less, don’t worry about voltage rating per se because it doesn’t matter in this application really (though it’s related to inductance).
The only meaningful physical spec variation I’ve seen is some NEMA17-advertised motors I have seen have #4-40 screw threads instead of M3. That seems less common these days, probably in part thanks to 3D printers.