If you have investment accounts, the IRS can see them in dividend and stock sales reportings through Forms 1099-DIV and 1099-B. If you have an IRA, the IRS will know about it through Form 5498.