Exact same way.
\1.2.3.4somesharedprinter
Where "1.2.3.4" is the IP address of whatever is sharing the printer.
Edit:
Even if your printer has a built-in network interface, let's mentally separate the printer from the print server for a moment.
When you have a computer, let's call it Bob, and you share a printer, let's call it printy, you can access it like this:
\Bobprinty
The first part of this address is the hostname or IP address. If Bob's IP address was 1.2.3.4, you could easily use this address instead:
\1.2.3.4printy
Now it sounds like your printer has a built-in print server which allows it to essentially share itself over the network. Most of these print servers are completely compatible with Windows File/Printer Sharing. So if the printer's IP is 2.3.4.5, we could use an address like this:
\2.3.4.5something
You want the something
part, yes? To do this we need to enumerate the shares on that print server. You can do that with the code found here: http://www.codeproject.com/KB/IP/networkshares.aspx
To my knowledge, there is no managed way to get a list of shares on a server, so the link above is probably your best option for now.
I should also note that another common standard for print servers is the HP Jet Direct. You can't (well you can, but it's hackish) print to these until you install the printer on your system. To do this, you would go to Printers, Add Printer, choose a "local" (yes, counterintuitive) printer, then for port choose TCP/IP, and then enter the IP address.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…