That's not factually accurate; you can use a PS3 controller with a computer but it takes effort on the part of the user and isn't as simple as using a typical computer gamepad and definitely not as simple as using an Xbox controller. If you have to ask how, you're probably better off just buying an Xbox controller and having everything work automatically.
http://www.gamefront.com/how-to-use-a-ps3-controller-on-a-pc/
^ This link is just one example of PS3 controller use on a PC. There are (clunkier) alternatives as well.
For the TV, your laptop needs a video out port (it likely has one) and then you need a cable that matches the video out port on the laptop, one of a few options for video input on your TV, and then you need to make sure that the TV is the primary display if it doesn't supercede the laptop's screen.
Queue
Unless he has some weirdly desperate need to use a PS3 controller specifically, that isn't even worth mentioning. The difficulty in managing it and the poor functionality even after make it pointless. You have to get a 3rd party driver, an emulator program, carefully assign each and every key function through the emulator, and still have a rough time managing menus and binding all necessary functions, and many things would function in a clumsy manner.