Seems there is no any reliable way for client printer to check if remote printer connected. However you can check if client printer connected to a network. You can call SGD commands from ZBI program in a way as it shown on page 557:
You need to execute following SGD command to obtain printer connectivity status:
! U1 getvar "ip.active_network"
Also, you may need to use ON ERROR handler in a way as it shown on page 485:
It will prevent your program from freezing forever in case of connectivity problems.
Software Engineer, Kutir Mobility
Posted on behalf of Zebra Technologies