We know by the context. Sometimes it's obvious, e.g. it says New Earth or it is happening now, which means the present or intermediate Heaven. Sometimes it's harder to tell.
For more information on the subject of Heaven, see Randy Alcorn’s book Heaven.
Randy Alcorn (@randyalcorn) is the author of over sixty books and the founder and director of Eternal Perspective Ministries.