The Homeland Security Department is discussing whether it should extend the same cyber defenses it provides to the electric grid or financial sector to the 9,000 state and local systems that collect, tally and report votes during a national election.