The UDF forum is your friend to the rescue.

PrinterExist()

There are probably other ways too, but this should work nicely enough for what you are wanting to do.