Out of the box, you can't. However, if you install a non-Microsoft kernel and some homebrew applications, both of those are implemented pretty well in Xbox Media Center (XBMC). Basically, check out
www.xbox-scene.com if you want to find out how to do all of that. ;-)