UP300 XYZ stepper motor replacement Nema 14 or Nema 17?

Good day,

Can anyone tell me where and which stepper motor (XYZ) not the extruder motor. I can purchase to replace my UP300 motor? As far as I can see its either a Nema 14 or Nema 17. Any help would be appreciated.