The installation code is the product key that ships with the game — look on the back of the DVD case, inside the manual, or on a sticker attached to the disc sleeve. It is unique to your copy, so a key posted online will not activate a legitimate install.
If the packaging is long gone, your best route is contacting EA's support team with a proof of purchase. Retailers and digital storefronts can also sometimes recover the key tied to your account or order history.