Finding your Half-Life serial code depends on how you obtained the game.
If you bought it on CD-ROM, the serial code is usually printed on the back of the instruction manual. If you purchased and downloaded it through Steam, the code is tied to your account automatically, so you shouldn't need to enter one manually; if you're having trouble, contacting Steam support is the right move.
I'd steer clear of using someone else's serial code found online, as that's not legitimate and can cause problems. The safest path is always through your own copy or the official platform you bought it from.