Usually the packaging for the cleaning tape has an indication about how many times it should be used - it it doesn't then you may need to contact the manufacturer of the cleaning tape or the tape drives - as it is not really a software function - it is a function of the design of the cleaning tape vs what the hardware does when it detects a cleaning tape.
Check the packaging for the Cleaning Tape. They normally come with a label containing check boxes. Tick one every time you do a cleaning job. When all are ticked, toss the cartridge and start a new one