The answer is operating-system-specific, but at least on Linux, unless the processes involved log the information somewhere, there is no memory of the original parent process.
The Linux kernel does keep track of two parent processes, but that’s for `ptrace`, not to track the original parent process. In any case, when a process exits, its data structures are removed, so there wouldn’t be any information to point to, and keeping the original parent pid would end up being misleading since pids are recycled.