If you formatted and loaded an OS onto your computer and you have onboard sound then the drivers will have been loaded with the OS, or a driver disc with your motherboard.
If you have a seperate sound card plugged into your motherboard then a CD will have come with it with the drivers on.