windows 10 is only free as an upgrade on a computer running windows 7 or 8 (until july 29th). the best bet is to look around to see what deal you can get on an OEM version of windows 8 or 10.
if you are looking for a free OS then look into the many linux distros availible