How can I find the location of a socket through c++?

Is this only for particle systems or could this work for projectiles as well?