This of course depends on the airplane. With some planes, you might be able to see the bus and passengers stairs from the cockpit and, usually, if the jetway has transparent sides, you'll see passengers from the cockpit as well.
A nice feature of the new 747-8 from PMDG is the surveillance cameras in the cockpit, which will show passengers while they board the plane.