Int 2Fh / 0106h         Get Printer Device                           DOS 3.3+

Returns the address of the device header for the current printer.

Entry AX = 0106h

Return Carry clear, AX = 00h Print queue is empty
or
Carry set, AX = 08h
DS:SI = Pointer to a DeviceHeader structure