Sims 3 product key

I have just build a new pc (my first build) and i have lost all but two of the sims 3 product codes (I owned all of the expantion packs). Is there any way that i can get the codes from my old laptop where the games are installed. please help thanks.

Contact EA.