Is there a way to determine the hardware configuration of the user's PC, when he coming to a web resource? Like characteristics of processor or amount of RAM.
Can I do this with JS or PHP?
Not with plain JavaScript or PHP. The browser simply does not expose that information. You could write a Java applet though and retrieve what you need trough that.