ok i got a hard question

I have diferent computers, lets say 200 cps with all known mac address.

i got 3 switches with 24 ports each.

i want to know if i can be able to know the port No. and switch of a given computer given the mac address...

some computer arent in the domain.

how could i start puttin this into code

all help will be extremely appreciated

You might wanna look into the SNMP protocol.
However, it would be quite pointless unless your switches are of the Managed type.