Even if you file separate returns (the worst way to file) you each have to list each other's SSN's and some other information on your own tax return. The IRS can then cross check to make sure you are not "double dipping" for itemized deductions, dependents, etc.
If you are in a community property state, there is more information that will be needed.