Each pulley sees two loads, one in each direction of the rope. Use vector analysis to convert those combined vectors into a single resultant vector acting on the axle of the pulley. Then use vector analysis to convert that force on the pulley into a normal force and a lateral force. The lateral force and the the distance from the pulley axle to the center of the beam produce the torsional moment load on the beam.