physics::JointWrench wrench = this->model->GetJoint("...your model joint name...")->GetForceTorque(0u);

On the SDF side, in your model, you must set <provide_feedback> to true for this to work.