It worth to split your problem on two parts:
1) Your program need to communicate with your printer.
2) You need to use respective printer commands to read and set needed values.
Here you can see some examples on how you can communicate with your printer from what are the interface, dll, classes I have to call from an external application to print from zebra 22xi4?
Could you please to share a model name of your printer? In case SGD and ZPL languages are supported in your printer you can see here respective command to read and set peel related settings:
Software Engineer, Kutir Mobility
Posted on behalf of Zebra Technologies