what do you call that icon that appears on the lower right on your taskbar?

i'd like to know how much papers my ink catrdrige can print before it runs out so i'm going to make a program.

right now my idea is accessing the 'print jobs' and getting events from there if there are documents that are pending/being printed etc.,.,

how? which api/class/docs?