If your sites are objects in the root of eZ publish, e.g. folders, you can fetch them with a normal fetch function in eZ publish.
See:
http://ez.no/developer/ez_publish_3/documentation/customization/custom_design The documents database connectivity and examples shows how you can do this.