Sarthak Srivastava's class discusses four types of computer networks: local area networks (LANs) which connect buildings near each other, metropolitan area networks (MANs) which connect an entire city, wide area networks (WANs) which connect locations in different cities or countries like the internet, and campus area networks (CANs) which connect local networks within a university.