Python, 194 177 176176 172 characters
f=open(raw_input())
V,H=map(int,next(f).split())
p=W=H+2
h='#'
t=W*h+h
n=1
for c in h.join(f):
t=t[1:]+c;p+=1
if'# '==t['in(t[-2:]or'# '==t[],t[::W]):print"%d\t%d\t%d"%(n,p/W,p%W);n+=1