You have to follow these steps to find broken images in a page using Selenium Web driver:
- get XPath and get the all links on the page using the tag name
- click on every link on the page
- look for 404/500 in the target page title
This way you can either check for the broken links or store them in a file and use it for later references.
Hope this helps.