Failed searches waste everyone's time. Anything that suggests you may not accept an offer might be a warning sign for the department. This could be your spouse, because 1) people turn down jobs if their spouse doesn't want to live in that location (or can't find a job), and 2) two-academic households, they might only accept if offered two positions.
Your situation probably makes the department think you are more likely to accept. It doesn't sound likely to hurt your chances. However, there could also be some old-school sexism, etc., ("oh, your spouse works?") depending on the people and genders involved. I don't know the odds of this being a problem, but worth thinking about before disclosing.
Will this matter a lot? Probably depends on the type of school and how attractive the location is. If you are applying to a less prestigious university in a smaller city, departments might really appreciate the evidence that you want to be there (and won't move at the first chance). When I interviewed at a less-fancy school in my home state, I'm pretty sure that came up as a plus. If it's Harvard, I wouldn't expect it to matter at all.