Get status printer

Hello,

How can i get the status of printer USB ?

thank,

Franck