Microsoft Windows XP comes with a VBS script to manage local and network printers from the command line:
To Get the default printer details from command line:
In Windows 7 these same scripts are found in
C:\Windows\System32\Printing_Admin_Scripts\en-US