https://legacydocs.hubspot.com/docs/methods/lists/get_list_contacts, through which you can get the list in which you want to search the email, and then all the contacts will be fetched from that list. Then, you can parse that response and you will be able to do the validation if that email is present in the HubSpot list or not.