Try this, remove the laptop hard drive and the external to see if the laptop stays on.
If it doesn't remain on. As Alvine said, you may have a bad mobo
If it remains on. one of your hard drives, the internal or external may be deffectve and is causeing a power short.