How to get the remaining number of wristbands in the catridge?

I am developing a java application to print the wristband with the printer HC 100.  I would like to get the remaining number of wristband left in the cartridge. Please help. Thanks in advance.