Marcus,
You might want to look at the Focus.fll library written by Pat Boens. It contains functions to retrieve all kind of information of the printer, including drivername, location, printerport etc, maybe sharename.
Focus.fll and the documentation is freely available from
WWW.fastwrite.comWalter,