Variable speed replacement

I want to replace a K48M2N110 with the ECM27CU. How do I know if I have a round or square flange?