SQL 2005 find duplicate indexes
I would avoid msforeachdb it has been known to miss databases, which I have experienced first person. 

Either create your own cursor(opportunity to learn something new!), or use Aaron Bertrand's reliable version. sp_ineachdb