WooCommerce is using this function to show billing and shipping addresses in the customer profile. So this will might help.
The user needs to be logged in to get address using this function.
wc_get_account_formatted_address( 'billing' );
or
wc_get_account_formatted_address( 'shipping' );