The throwing motion involves the following main parts:
Elbow extension - triceps
Shoulder Extension - lats, deltoids and pecs
And the wrist part is probably Ulnar flexion using the forearm muscles.
So literally everything in the upper body except the bicep. One of the physios on the site can probably confirm the above. Or tell me i'm full of shit