Simple use a program called Nmap.