This page links to my code for sp_Blitz checks.
(sp_Blitz can be found at http://brentozar.com/go/blitz)

Find all heaps