Making the USB hard drive a NAS device?

Hello I'm a newbie, and would like to know if it's possible to turn a USB attached hard drive into a fully functional NAS device to turn it into a media center, and have laptops or even phones able to access the media in the hard drive.

Thanks for your thoughts