Are you trying to parse this out of freeform text or do you know what data is what.
As an aside, I posted a module here for looking up ISO Country codes. Don't know if you will find it useful or not. I have one for US states to that I will post later.