Code:
$ ipcs -p
------ Shared Memory Creator/Last-op --------
shmid owner cpid lpid
32768 root 3288 3474
65537 root 3288 3348
2424834 colucix 13252 13263
2457603 colucix 13252 3288
2654212 colucix 13252 3288
2588678 colucix 13252 13252
where cpid is the process ID of the creator (the information I think you're looking for) and lpid is the process ID of the last process that accessed that particular segment of memory.
Edit: notes by btmiller are correct: killing a creator process will free shared memory and the related semaphores, but bugs may prevent the normal behavior.