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

Find all heaps