The IRS uses your social security number to match to your W-2s. The name on your W-2s does not matter.
However, you should use the name on your social security card on your return. If you haven't changed it since you were married with the Social Security Administration, I would use your maiden name.