AFAIK this is not possible if the iframes are on different domains (e.g. google.com and mysite.com), as it falls foul of the same-origin access policy.
However, if the iframes are on the same domain, then this should work:
document.getElementById('myiframe').contentDocument.location; // All good browsers
document.frames['MyFrame'].document.location; // IE