That sounds odd and it looks like you checked out the major components that might be the cause of shutdown. Did you check the motherboard site if their is a BIOS update?? Otherwise you if it is the motherboard you have to RMA if under warranty and get a newer revision of the motherboard.
This part is confusing? Does the drive cause it or not?? You just said it worked and then said it didn't work???
"I built a computer a few days ago and have been having trouble with my LG blu-ray drive. Whenever I put a disk in the drive, the computer turns off. Same also happens when I plug in an IDE DVD drive. The only optical drive that seems to work is when I use an IDE CD drive."