|A static electricity discharge can damage the computer or anything connected to it.|
Did you have the desktop computer or the laptop's AC adapter plugged into a grounded AC outlet with a continuous ground connection (3 wires) all the way to the outlet ?
If yes, are you SURE the AC outlet is grounded ?
You can use a simple adapter you plug into the AC outlet that can test it to see whether it's wired up properly and grounded, indicated by means of three leds or lights .
Try a different mouse.