How to get the Public Keys of a bitcoin User
You cannot compute the public key of an address (that is not yours), because the address is computed from the hash of the public key. 

You can find the public key of your own address with the Bitcoin-QT debug window or with a validateaddress RPC call.