In windows you can attach tasks to events.
You can attach a task to an audit event that represents connections to the local host shares.
You will need to configure the filter using XML and filter share connections events (5140) and discard events from the local host itself to connect to itself (many programs try to connect to c$ share like firefox when opening a browse file dialog and uploading files to forms).
This is the filter
<Query Id="0" Path="Security">
After the filter is built, attach the task of sending email or an on screen message "some one is trying to connect to my computer - see event log for details"