As was described in this other thread, it is possible with a force/torque sensor mounted at the robot wrist.