You can easily do it with vanilla js.
- Query the document for an element with the specific name, id, class or whatever
Get the source for attribute for that element
//Get by Id
var frame_src = document.getElementById('myIframe').src
//Get by tag name - get the first
var frame_src = document.getElementsByName('frmExternal')[0].src
//Alert
alert(frame_src)