I would like to check the code hash of an account from within my smart contract. Is this possible?
There's currently no WASM intrinsic to do that. However, Newdex keeps a list of all smart contracts for anyone to check on-chain. See here for more details
Update Actually, you don't have access to
account_object from the contract.
You can use
From cleos do:
cleos get code <accountName>