Send AP mac hotspot

Hi, is there a way to extract the ap ip or mac address and send it in the same html before clicking log in?, I want to be able to check where is the user connected exacly.

Thanks for your help.