Can leakage current to ground generate static electricity?
It won't be a static charge.  But if what you think is "ground" isn't really grounded at all, then stray voltages can build up.  This might be up to half the supply voltage.  The only way to tell is to measure the voltage to a known good ground, that you can confirm is really connected to the Earth.  This might be a metal rod pushed into the soil outside the building.

Also bear in mind that if you are walking from the door to the laptop, you could be building up static then.