Tracking what hitbox a player is looking at?

I know how to check what entity a player is looking at, and then check if that entity is a player, ect.

Is there any way to check what hitbox the player is looking at when looking at another player?

For instance, if I wanted to have something happen only if you look at a players head, but nothing else?