John is correct on all points. SSN's are issued by SSA and EIN's are issued by the IRS. Duplicate numbers are not issued intentionally, but
stuff happens when you have two federal agencies engaged in the same process.
Here's a
link to the SSA web site describing how SSNs are assigned. Neither SSNs nor EINs reflect a mathematical formula.
Any attempt at verfication would not be based on the number alone, you would be attempting to determine if this number went with this name. You can do that through IRS
e-services.