Doesn't the crawl diagnostic system tell you? If you are talking about Google webmaster tools, under Diagnostics => Crawl Errors they will show 404 errors. They also usually show under the Linked From column the page they found the broken links on. If they are from external sites, you can't necessarily do anything about it, although you can try to contact the webmaster of the linking site and ask him to fix the link. If the broken links are from your own site, you fix them.
Many webmasters also use a program called Xenu. Do a search for it. It runs on Windows; I don't think they have a Mac version. It will crawl your site and identify broken links and what page they are on. It's a good idea to run a Xenu scan on your sites periodically.