uas: Add uas_find_endpoints() helper function