Stanford gives you a two-week "shopping period" where you can go to as many classes as you like and then decide which courses to keep on your Study List. But you'll need to have a rough plan laid out for how you'll complete your MS requirements by the end of your first quarter.
A subset of CS classes are available online through the Stanford Center for Professional Development (SCPD) for students at member companies.