You can do this in Adobe Bridge (using CS4, have not tested other versions). Generate a search result (edit>find...) or whichever method you like. In the filter panel on the left (window>filter panel to turn on/off) you should see a Group labeled Aspect Ratio. Expand this to find a series of aspect filters, 1:1, 2:3, 16:9,…