That Synology Diskstation is it able to run a webcam with motion detect software and able to view it on a tv or is it purely for storage.
I want the cctv setup for my driveway.
You should be able to attach a USB web cam to it, or network IP camera to it as it has a single camera license installed by default.
The surveillance station software allows you to setup all manner of things, including motion detection.
https://www.synology.com/en-uk/support/tutorials/467
However you need a camera that supports motion detection. And if you want it to record 24/7 you will want a camera that can see in the dark and uses infrared light.
Add a 4TB drive and it will do 720p video at 10 frames per second and write over itself every 24 hours. You'll need a more powerful NAS for more FPS or longer write over times. My DS413J will do 1080p at 30fps write over every 24 hours.
The following link you can pin down a specific NAS for your requirements.
https://www.synology.com/en-uk/support/nvr_selector/
The following link you can demo the Synology operating system, including seeing how the functionality of the surveillance station software is laid out.
http://www.synology.com/en-uk/products/dsm_livedemo
In short, the cheapest way to do surveillance is through a NAS, and it doesn't actually work out that cheap once you factor in the NAS, HDD and camera. But it's cheaper than trying to build or buy a custom computer for it as well as camera and then a windows license and then surveillance software.