here are a few links to get you started; the first being the fix for the error code, the second being the global download site for your Samsung, the third being the download site for your Philips.
Try here first for your Philips driver:
I am running windows xp, dell computer, model Dimension 8400. I purchased this system in Jan 2005, nothing has been tinkered with. I tried to use my DVD drive and got the following message. "Windows can not load the device driver for this hardware. The driver may be corrupted or missing (Code 39). My drives are SAMSUNG CD-R/RW SW-252S; Philips DVD +-RW DVD 8631. I ran a device driver update, they said what came with the machine is the most current drivers. I tried uninstalling and reinstalling per the hardware troubleshooter, nothing has worked. I am a novice concerning problems, however, I am teachable, and can follow instructions. However, I don't know exactly where I stand with this problem, any help would be appreciated. I should also mention, I don't use these drives very often, however, when I need them I would like them to work. Thanks.