You cannot do that. The vast majority of laptops only has HDMI Out which means you can only hook up a monitor to the laptop.
The only laptops that I know of which have HDMI In that will allow you to use the laptops' screen as a monitor for something like an Xbox are Alienware laptops.