I guess that the "data sheet" refered to is the motor manufacturer's test sheet. As controlnovice says, the tester measures the winding resistance (and the ambient temperature) before test and immediately after the test. The change in resistance is used to determine the temperature rise of the winding above ambient, actually the average rise. Large motors can have RTDs fitted for monitoring of winding temperature. These can be used on test, in which case "RTD" is entered on the test sheet in the 'Measurement of Temperature Method' space. Standards usually allow either way of measurement. You have to safly disconnect the power source for the motor and this can take a little while on a large, high voltage motor. During this period the motor could cool slightly. So you use the RTDs.
RTDs only measure the temperature where they are! On the large (1000+ kW) I used to be involved with, we put them in the slot separator, that is the strip of insulation between the top and bottom layers of the winding. That is the place you expect to be the hottest. As they were about 10 to 20cm long, they will again only measure the average.