The IRS doesn't provide online access to your tax return. If you filed your tax returns with the specific provider - you may contact the provider if such option is available.
If you need an exact copy of a previously filed and processed return and all attachments (including Form W-2 ), you must complete Form 4506 , Request for Copy of Tax Return and mail it to the IRS address in the instructions along with a $39 fee for each tax year requested. Copies are generally available for returns filed in the current and past 6 years.
In cases where an exact copy of the return is not needed, tax return and transcripts may be ordered. The tax return transcript shows most line items contained on the return as it was originally filed, including any accompanying forms and schedules. In most cases, a tax return transcript will meet the requirements for lending institutions for mortgage verification purposes.
The transcript can be ordered by completing a Form 4506-T or calling(NNN) NNN-NNNNand following the prompts in the recorded message. There is no charge for the transcript and you should receive it in 10 business days from the time we receive your request. Tax return transcripts are generally available for the current and past three years. If you need a statement of your tax account which shows changes that you or the IRS made after the original return was filed, you must request a "Tax Account Transcript". This transcript shows basic data including marital status, type of return filed, adjusted gross income, taxable income, payments and adjustments made on your account. Tax return and account transcripts are generally available for the current and past 3 years.
please see for reference - http://www.irs.gov/faqs/faq-kw133.html