Is there any way to get housing perk tax exemption or getting deposited tax returned

i am a psu employee. I have been transferred from a location ‘A’ where housing perk is tax exempted. I have been transferred to a location ‘B’ where housing perk is taxable. If i retain family accomodation at earlier location ‘A’ and live in a batchlor accomodation in Location ‘B’ but my housing perk tax is calculated according to my current (location’B’) location.

is there any way to get housing perk tax exemption or getting deposited tax returned.

No. The tax is determined by your current work location and hence the attached residence.