How do you know which cylinder has the head gasket blown?

It does not matter. If one is blown on a V6 or V8 then you need to replace them both.