The Pope can’t just determine one is in Heaven or Hell. The Pope can, however, determine that certain miracles verify that someone is in Heaven.
There’s a substantial difference. Remember, the decision ultimately belongs to God, not the Pope. The Pope merely interprets the signs.
Obviously, no one in Hell would have miracles attached to them after they die, so there is no real way to do the same thing in reverse.