On a community home page, there are viewlets that contain content to be displayed to users of the community. To get the content of one of these viewlets, use RAMCommunity.getHomepageViewlet(String name).
//Get a Homepage Viewlet
RAMHomepageViewlet viewlet = community.getHomepageViewlet("My Viewlet");