SharePoint Designer has an excellent range of reports (slow pages, checked out
files etc.). One of them is a "hyperlinks" report which shows all hyperlinks on
all pages in the site, including a "type" column for image, style sheet, master
page etc. I think you could probably extract the information from that.