Your first trick would be getting the shock to the powder (effectively impossible in its metal shell), or somehow directing it to the primer (also really hard given it's embedded in a metal chamber, and backed by the metal of the bolt or slide breech face).

If you can get the static discharge to the primer, will it generate enough heat or shock to set it off? Doubtful, given the shock's coming from the cup side... again shielding the sensitive bits from the effects of the spark.