There isn't a single universal serial key for World of Warcraft. Every legitimate copy gets its own unique code, and you obtain it by actually purchasing the game and its expansions.
With a physical copy, look inside the CD-ROM case. You'll find a 25-character code printed on a slip of paper or sticker, usually formatted as five groups of five characters separated by hyphens. Enter that string when the installer prompts you.
Bought it digitally? The code is normally displayed on your download confirmation page and emailed to you, so check your inbox and spam folder. If nothing arrived, contact Blizzard Entertainment through their official support channels at blizzard.com and they can help you recover the key tied to your account.
If the game is asking for a code and you borrowed or obtained the disc from an unofficial source, there's no way around it: you'll need to buy your own copy.