... I have one thing to say about it so far: thank GOD for the property of equality (I can just manipulate the formula I have for IVs to solve it for EVs).
Careful! It's not as simple as it looks.
The breeding guide contains a section of how to find the IVs of a newly-hatched Pokemon by noting its stats at level 100 in a Wi-Fi battle. The formulae (there's more than one, depending on whether the stat is boosted, hindered, or unaffected by the nature of the Pokemon) aren't very simple.
If the IVs are known, the EVs can be found in a similar fashion.
Assuming the Pokemon is at Level 100, the EVs are found as follows:
1) If the stat is unaffected by the Pokemon's nature:
EV = 4 x (Stat - (2 x B + IV + Num))
where Num = 5 if stat is not HP, and 110 if stat is HP.
2) If the stat is boosted by the Pokemon's nature:
EV = 4 x (ceil(Stat x 10 / 11) - (2 x B + IV + 5))
3) If the stat is hindered by the Pokemon's nature:
EV = 4 x (ceil(Stat x 10 / 9) - (2 x B + IV + 5))