If your computer is using dedicated graphics there may be a setting somewhere in your ati/nvidia control center for it, you'd have to poke around though.
Or you could change your power settings for 'lid close action' to do nothing. that way you could close the laptop and it wouldn't go to sleep or anything, and still send the visual to your display