List shared folders

Introduction

Which folders are shared on a computer? There are at least two --
and I suspect several more -- ways of getting to this information.
As far as I'm aware, there's no particular reason to choose one
over the other; it comes down to what you're comfortable with.

Option one is to use WMI; this is already illustrated by an
example
on the WMI cookbook on this very site. A second approach is
to use the win32net module from pywin32.