If the domain, protocol and ports match, just use...
var links = $('iframe:first').contents()[0].links;
jsFiddle.
...or without jQuery...
var iframe = document.getElementsByTagName('iframe')[0],
doc = iframe.contentDocument || iframe.contentWindow.document;
var links = doc.links;
jsFiddle.
This takes advantage of the document.links property.