Hi,
You can do that with our client side JavaScript interface:
http://doc.essentialobjects.com/library/1/clientapi_howto.aspxBasically you call eo_GetObject to get the Menu object, then get the corresponding MenuGroup (SubMenu) object from the Menu object, then get all MenuItem object from the MenuGroup object. Each object provides a list of methods that you can use (for example, MenuGroup object provides getItemCount method to return the total number menu items in that group). Please use the reference section to find out what methods are available on each object.
Thanks!