HERE is an IRS link for help getting a copy of a W-2, however since you are trying to get a W-2 for someone else, they probably can't help. I assume the incarcerated individual would need to make the request or give you access to their email so you can get the copy.
The employer may be limited from giving a copy directly to you because of privacy laws.
**Say "Thanks" by clicking the thumb icon in a post
**Mark the post that answers your question by clicking on "Mark as Best Answer"