Provided your app has access to the Ads API and you have the ads_management
Permission you can retrieve the list of Advertising Accounts with a call to /<USER ID>/adaccounts
The response is an array of adaccount
objects, documented here: https://developers.facebook.com/docs/reference/ads-api/adaccount/