You'll find what you need in the documentation: http://ez.no/doc/ez_publish/technical_manual/3_6/reference/objects/ezcontentobject
You can use main_parent_node_id to fetch the parent node. I don't know if it's possible to access the parent node without fetching it first, but I don't think so.