List devices with endpoint protection

Options

Is there a way via the API to list devices with endpoint protection? I need to do this to integrate the licensing costs with our existing automated custom billing system.