If you’ve lost your serial key for the game you can find it using Terminal, providing the game is still installed on your Mac.
- Go to Finder > Utilities > Terminal
- Copy and paste the following into the window then hit enter:
cat Library/Preferences/The\ Sims\ 3\ Preferences/system.reg |grep -A1 ergc
You should see the following (minus the stuff in red):