The part that says "Version 10.3.4" and "Build 7H63" or whatever comes from /System/Library/CoreServices/SystemVersion.plist.
The Processor, Memory, and serial number are stored, well, on your computer's main logic board.

That info is collected and formatted at runtime.