Each State’s electoral votes are counted in a joint session of Congress on the 6th of January in the year following the meeting of the electors. Members of the House and Senate meet in the House Chamber to conduct the official count of electoral votes. The Vice President, as President of the Senate, presides over the count and announces the results of the vote. The President of the Senate then declares which persons, if any, have been elected President and Vice President of the United States.
https://www.archives.gov/electoral-college/about
The following provisions of law governing Presidential Elections are contained in Chapter 1 of Title 3, United States Code (62 Stat. 672, as amended):
TITLE 3 THE PRESIDENT
Chapter 1. Presidential Elections and Vacancies
Counting electoral votes in congress
§ 15. Congress shall be in session on the sixth day of January succeeding every meeting of the electors. The Senate and House of Representatives shall meet in the Hall of the House of Representatives at the hour of 1 o'clock in the afternoon on that day, and the President of the Senate shall be their presiding officer. Two tellers shall be previously appointed on the part of the Senate and two on the part of the House of Representatives, to whom shall be handed, as they are opened by the President of the Senate, all the certificates and papers purporting to be certificates of the electoral votes, which certificates and papers shall be opened, presented, and acted upon in the alphabetical order of the States, beginning with the letter A; and said tellers, having then read the same in the presence and hearing of the two Houses, shall make a list of the votes as they shall appear from the said certificates; and the votes having been ascertained and counted according to the rules in this subchapter provided, the result of the same shall be delivered to the President of the Senate, who shall thereupon announce the state of the vote, which announcement shall be deemed a sufficient declaration of the persons, if any, elected President and Vice President of the United States, and, together with a list of the votes, be entered on the Journals of the two Houses. Upon such reading of any such certificate or paper, the President of the Senate shall call for objections, if any. Every objection shall be made in writing, and shall state clearly and concisely, and without argument, the ground thereof, and shall be signed by at least one Senator and one Member of the House of Representatives before the same shall be received. When all objections so made to any vote or paper from a State shall have been received and read, the Senate shall thereupon withdraw, and such objections shall be submitted to the Senate for its decision; and the Speaker of the House of Representatives shall, in like manner, submit such objections to the House of Representatives for its decision; and no electoral vote or votes from any State which shall have been regularly given by electors whose appointment has been lawfully certified to according to section 6 of this title from which but one return has been received shall be rejected, but the two Houses concurrently may reject the vote or votes when they agree that such vote or votes have not been so regularly given by electors whose appointment has been so certified. If more than one return or paper purporting to be a return from a State shall have been received by the President of the Senate, those votes, and those only, shall be counted which shall have been regularly given by the electors who are shown by the determination mentioned in section 5 of this title to have been appointed
https://www.archives.gov/electoral-college/provisions