Thats a tough one. If you just got a quick zap like when you touch the light switch after crossing the carpet, thats just static electricity and there isnt much you can do about that. Even if you ground every metal piece of equipment and put a ground rod into the tank, its still going to be at a different potential than your body after walking across the carpet. That wont hurt your fish though, either. The water or something on the tank might be at a different potential than your body standing next to the tank, but the fish in the tank will be at the same potential as the tank itself, so they are safe.
Now, if your heater or some other piece of equipment that is in physical and electrical contact with the water is cracked and allowing water to penetrate its seal, then you could have a more serious potential between you and the tank. I would also tend to think that if something were leaking or allowing water inside it that it would quit working, unless only one conductor were in contact with the water. If the hot or neutral conductor in say, your heater, were in contact with the water then youd deffinitely feel it should you touch the water; the fish might still be fine because they are at the same potential as the conductor that is in the water. If the potential between the water and the conductor were different, youd blow a breaker or a fuse or something.
Measuring a stray voltage could be impossible without some expensive equipment like an ESD tester or static meter. You could check with a standard VOM to see if there is much difference in potential, or read the resistance between the tank water, components and an earth ground. If you stick the leads of a VOM in the water and one lead to a good ground and you read a high voltage then you seriously have a problem. Then you need to check the wiring for your heater or anything else electric that comes in contact with the water.