Retirement tax questions

Where do I find this record of how much I put in and Mass taxed at the time, especially if it included several  Rollover 401Ks with a company match?