Computer science is a broad field. Yes, it deals with software and programming, but it also concerns itself with such topics as the theory of computing, artificial intelligence, scientific computing, cryptography and computational complexity.
Computer engineering is concerned with hardware, broadly defined. Thus, you study computer architecture (design), and the way in which computer hardware and software work together. This area of study ties closely to electrical engineering, and at some universities electrical and computer engineering are combined into one department.