Maybe you would be able to cause a round to fire, but if (in your example) you were shot in both hands and could not grasp the grip (it does not require squeezing a XD/XDm to disengage the grip safety), then you will not be able to aim, point, or shoot effectively. So the point is moot.
Can we...