Since there can be more then one, as per your example, you need to loop through each profile to get that information:
$paymentProfileIds = array();
foreach ($response->xml->profile->paymentProfiles AS $profile) {
$paymentProfileIds[] = (string) $profile->customerPaymentProfileId;
}
print_r($paymentProfileIds);