A CPA is regulated by Treasury Circular 230 and must provide the clients documents upon request. The CPA may charge a reasonable fee for copies and time spent retreiving the data. Books done two years ago should still be retained by the CPA. Complaints can be made to your state board of accountancy.
How long is a CPA required to keep copies of your tax returns by law? Not at all, though that is not well known.
Under federal law, there is not actually any requirement to retain a copy of the tax return; so long as a list is kept by the preparer of of all the taxpayers, their taxpayer identification numbers, the taxable years, and the type of returns/claims for refund prepared and has it available for inspection upon request by the IRS for a 3-year period following the close of the return period.
From the Internal Revenue Manual Section 220.127.116.11.4 (02-08-2008) : Failure to Retain Copy or List IRC Section 6695(d)
The IRC section 6695(d) penalty applies if the preparer fails to comply with IRC section 6107(b), Copy or List to Be Retained by Income Tax Return Preparer. Under IRC section 6107(b) and the regulations thereunder, a preparer must:
Retain a completed copy of the return/claim for refund, or alternatively retain a record (by list, card file, electronically, or otherwise) of all the taxpayers, their taxpayer identification numbers, the taxable years, and the type of returns/claims for refund prepared.
Retain a record (by copy of the return/claim for refund or by a list, card file, electronically, or otherwise) of the name of the preparer required to sign the return/claim for refund under IRC section 6695(b) for each return/claim for refund presented to the taxpayer.
Make such copy or list available for inspection upon request by the IRS for a 3-year period following the close of the return period (See IRC section 6060(c) for the definition of "return period" ).
If there is an employment arrangement between two or more preparers, the requirement to retain a copy or list only applies to the person who employs (or engages) one or more other preparers. Similarly, if there is a partnership arrangement, the requirement to retain a copy or list only applies to the partnership. Treas. Reg. 1.61071(c).
The IRC section 6695(d) penalty does not apply if the failure was due to reasonable cause and not due to willful neglect. Thus, the penalty for failure to retain a copy or list will not be imposed solely because:
A person is a preparer under Treas. Reg.NNN-NN-NNNNa)(2) and (b), because of giving advice on specific issues of law.
A person is a preparer under Treas. Reg.NNN-NN-NNNNb)(3) because of preparing another return (e.g., the partnership return) which affects the amounts reported on the return in question (e.g., the partner's return)
The common (and best) practice is for the preparer to keep and later make available complete copies of tax returns; but it is not actually a legal requirement.
I hope this helps for how long a CPA, EA or attorney is required to keep copies of your tax returns, by law.