Where does TFS 2017 actually store artifacts?
There are two options when publishing artifacts: Server and File Share. 

If you publish to the server, they are stored in the TFS database. You can't configure the location, however you can configure retention policies to ensure that old builds aren't kept around forever.

If you publish to a file share, they're stored on, well, a file share.