The only thing with any knowledge of the system on which it's running is the Operating System. The Operating System creates an abstraction layer in which every application runs. Applications can't know what processor you have or how much RAM you have without asking the Operating System. No modern browser will ask.
The Java Virtual Machine does ask the Operating System, so you could do it with a Java applet.
Otherwise you'd need a browser plugin.