Contributions to the UK National Insurance system withheld from your pay-check or made on self-employment income are not deductible from the U.S. taxable income and do not qualify for the foreign earned income credit.
You can check your record of UK National Insurance contributions here: https://www.gov.uk/check-national-insurance-record