Yes this can be done. Since your using Windows I'd recommend looking into the Windows Event Scheduler. Official Microsoft documentation can be found HERE.
Since you don't provide any details about where the stream is coming from I can only give you general guidance. But it's going to look something like this.
- Setup Windows Event Scheduler to run a batch script when you want the stream to open and start recording.
- Create a batch script that opens the IP stream, and starts recording.
The script is going to look something like this:
"C:/Program Files/VideoLAN/VLC/vlc.exe http://host[:port]/url" "#transcode:duplicate}"
This is extremely rough and will require lots of tweaking for it to work. I'd recommend reading the command line help HERE.