Display content based on WordPress navigation menu

For one page WordPress theme I needed to display content based on defined menu. So I had menu location named top_menu and my job was to find what pages are inside and to display their content. First I needed to use function that would bring me back name of menu assigned to that location.