A network IP camera should do that. Look at the Trendnet models. They can be set to record still or video after motion detection and store the recordings to a network location.