just query this from each instance and compare the values, no need for reams and reams of code
SELECT SERVERPROPERTY('Computernamephysicalnetbios')
-----------------------------------------------------------------------------------------------------------
"Ya can't make an omelette without breaking just a few eggs" 😉