Usually, switching from built-in speaker on a laptop to head phones is mechanical by just plugging in the head phones. No need to do anything on the PC.
If that doesn't work install a USB audio card. It should come with its own drivers (or you have to download them). Cheap, so worth a try.