Server Name, Printer Name and Driver name are all part of the PRINTER_INFO_2 structure that you can get using the API call GetPrinter as per this article