PrinterList() will help you get the ports, but you will still need some code to figure out what printer is the default.