I'm looking for coding that can detect unique pc and mobile device for use on my website

No, it is not " quite impossible ".
It is actually really easy with either php or JS to implement it.
Every device has a unique ID that can be used for web and it is actually something that High Scale Companies are doing for their security intranets