to check the status of a Billing Agreement you can use the BAUpdate API (NVP: METHOD=BillAgreementUpdate).
Normally this API is used to delete a Billing Agreement, but if you use it without the BillingAgreementStatus field, it returns the current status of Billing Agreement, allowing you to know if a Billing Agreement is still valid or not.
In fact if a Billing Agreement is no longer valid, Paypal will respond with an errorcode 10201 "Billing Agreement was cancelled"
source API Operations for Reference Transactions, Angell EYE PayPal NVP CodeIgniter Library (PHP)
Regards