If you're at home where this is happening, there's a simple solution, just take off your shoes and socks and walk around barefoot and you'll continuously discharge any static charge. If you must wear socks, make sure they're cotton.
If when you touch the case and there's a static discharge, that means that your case is grounded, but you're not. If you're not careful and touch some of your computers internal components like a circuit board or ram, you could fry them. Touch the frame or case first. If your computer is pluged in, it's grounded unless you live in a very old house with antiquated wiring that's ungrounded and unsafe.
You can also discharge yourself by touching a metal door handle or a faucet. Hold a key or a piece of metal in your hand so the discharge goes out through the end of the metal and not your finger.
Just take off your shoes. You'll be grounded.
Believe it or not, they also make anti-static ankle straps that wrap around your ankle and under your shoe so that you continuously discharge through under your shoe.
If he's walking around on carpet with bare feet, he still isn't going to be grounded and may still build up charge. If the socks and shoes were causing the problem he would build up charge on a wood floor while wearing socks and shoes...which he may in fact do, but walking in bare feet on either surface won't completely solve the problem.
The anke straps you mention are for use on a grounded floor.
I'm sorry, but you're wrong about being barefoot and not being grounded. It's the shoes that keep your body from being grounded. They isolate your body from the ground. They are an insulator.
Read this from Jeremy Smallwood's science forum, which is here:
http://homepages.pavilion.co.uk/jeremys/
" A similar thing happens when you walk across a floor, when high levels of electric charge often building up on your body as you walk. The shock comes when you touch a filing cabinet, door knob, or other substantial conductive object, which may or may not be electrically grounded. (Sometimes people assume that the object gave them a shock, when in fact they themselves were the source). If the object happens to be a computer or other electronic system, the system can experience an electrostatic discharge (ESD) which can cause the system to crash if the shock is great enough. I once measured the voltage on about ten computer users after they had entered a computer room, and before they sat at their consoles. Few of them had a voltage of less than 4kV (1kV=1000V) before the sat down. Their body voltage normally increased substantially as they sat down, unless they happened to touch a conductive discharge path as they sat.
Photocopiers use static electricity in their operation, and also generate a fair amount of static on the paper or film as it runs through the machine. A person operating the machine for some time may find that some of this static charge builds up on them as the unload the paper from the output trays. This can, in extreme cases, cause unpleasant shocks to be experienced. A simple temporary solution ( which may or may not be acceptable!) is for the operator to take their shoes off! This often allows the static charges to drain to ground before they can build up to significant levels."
The floors in most homes are usually grounded