It is possible using an optic sensor. You can either buy one or take it out from an old printer. As far as I remember, it should be connected to "Reference" pin of Mach3. The most difficult thing here is mounting the rotating circle on the shaft and aligning optic sensor. I still haven't made RPM sensor in my CNC lathe because it's motor is not so powerful and always rotates at maximum RPM