How do I work out spec of 24v dc motor?
You can take some of the numbers from the motor's label and do a internet search for them. You might get lucky and match a manufacturer's part number.

Other than that, take measurements. Measure the current, calculate power. Measuring RPM can be done with a stopwatch, a video camera, or more sophisticated methods depending on the approximate range of RPM values.