Setup – can I do this?

I have a seagate drive plugged into my router and my samsung smart tv plugged into the same to watch my local media today. Can I install KODI on the external drive and run straight from my TV?