You shoudshould be able to follow the PPID chain backwards from the process you are interested in. But if, say, A launched B, B launched C, and B finished, now C's parent is init (PID 1). To access information about process PID, you do ps -l -pPID.