Through the study of the subject of possession one can get some inkling as to what kind of ghost is possessing one. This is by observing the character, behaviour and thoughts displayed by the person. However to really be sure one would need to consult an evolved Saint.
Refer to the table in the introduction to types of ghosts that provides the likelihood of being affected or possessed by a certain type of ghost.