Thank you refer_2_me for contributing!
I can't help you with code, but I'm pretty sure that what you said won't help because by default, the bitcoin wallet uses a fresh address each time it mines a block.
I apologize since I don't fully understand and probably wasn't clear. I'm referring to the address used for fees & rewards. Is that the address you are referring to?
Thank you so much in advance!