You cannot get Mac address of client's machine.

Also using JavaScript to get Mac address of client poses a serious security risk, that is why you cannot get Mac address using JavaScript either.

I assume you need a unique Id, try using IP address.

Hope that would help.
Thanks and Regards