Considering that a browser is supposed to be completely isolating a website code from the client machine, what you are trying to do is probably not possible.
Any direct interaction with a client pc is generally done only via an activeX (in the old time with IE) or a java applet (now forbidden in most browsers by default)...
So I don't see how that could be possible, short of installing a windev program on the machine to configure all that