Can I check if a CPU key matches a nand in VB.net?

I’m am looking for a way to write this in VB. Just something that verifies that the CPU key thats entered matches the nand.bin thats is loaded. Or is there a better place to put this? I figured CPU key/Jtag forum…