It depends on whether your employer makes your W-2 form available online.
Due to the considerable security risks, even if they do, I'm sure you have to register for a user ID and password to access it.
Contact your employer and ask them how to get another copy of your W-2 form.