I don't entirely know how feasible this is, but my thought is to have a command that a user could run that would:
1. Take the last fainted pokemon
2. Run 2 damage calculations (one for if the opponent has full health&defensive stat, and one for no evs in both)
3. Lets you see what the chances...