How to recognize what body part took damage?

How would I go about setting up different damage animations based on where I took damage?