One way would be to calculate the theoretical power/torque excluding losses and then take the measured power/torque which will give you the actual power/torque plus losses.
It's exceedingly difficult to calculate alone frictional losses as there's so many moving parts and even more difficult to calculate heat loss due to various factors.
Good luck to him