Look inside the jewel case, on the paper insert to the left. The key is printed as a long alphanumeric string, usually on the manual or the small slip tucked behind the disc tray.
If the insert has gone missing, you have options. A retail copy bought through Steam or another digital store has the key stored in your account library, and Activision's support can sometimes recover a key if you can supply proof of purchase.
Keep the code somewhere safe once you find it — you'll need it again for reinstalls, and scratched or faded inserts are a common headache.