To identify those contacts first find, if Salesforce Lead ID is known & Salesforce Contact ID is known, those contacts are coverted from leads to contacts, similarly if lead ID is unknown, those contacts are created directly.
Filter out the contacts based on these criteria to get the results you require.