Finding which Shader is attached

Hi,
I am trying to query an object to find out what material is attached to it I can't seem to find a command that does this anyone know he answer?
Thanks
Tricky

Surely someone must know?

listConnections -s 0 -d 1 -type shadingEngine [objectShape]

--JeffD