Microsoft has started rolling out "invitations" to be one of the first to get Windows 10 automatically... and yes, this is a good thing! If you have Windows 7 or 8 (8.1) then you will most likely get this prompt in the system tray (see below)
(lower right hand corner of your computer screen where the clock and other icons are displayed)
All you have to do is click on this so that it opens in the box you see at the top of this page, then enter your email address.. What will happen is the actual windows 10 install files will automatically be downloaded to your computer and when the update is ready to be installed you will get an email confirming this. Note: you DO NOT need to select the check-box as this will only send you useless windows propaganda from Microsoft.
If you do not wish to be notified then you can click on SKIP EMAIL CONFIRMATION.. this will however, not stop the automatic download of windows 10. That can only be done by turning off your automatic windows updates (not recommended) which is something I would never suggest unless I personally did suggest! By this I mean if I am already looking after the maintenance of your computer I will be more than likely aware of the update and will be rolling it out accordingly...
I will of course ask you before I install it but if I am questioned on whether or not you should go for it, my answer will be a solid YES-ABSOLUTELY! Windows 10 is a much refined version of Windows 8-8.1 and by that I mean all the major bugs worked out of it. On an older (Windows 7) machine, you are giving your computer another few years of life as they will stop providing for the eldest operating system currently being supported by Microsoft.
If you have Windows XP or Vista (then what the heck are you still doing on the internet?) No but seriously, if you have Windows XP or Vista then you should only be using CHROME as your browser. Tom's Guide spells it out perfectly here. In order for an XP or Vista machine to be entitled to the 'automatic update' to Windows 10, you would first have to install windows 7 or 8 on it.. Contact me to see if it is worth doing... it might be, especially if your computer's processor and hardware is not that bad. For example, if you have a dual-core CPU with 4GB of RAM then yes, it can most certainly handle it.. even if it had 2GB of ram but at that point I wouldn't be recommending it--since you can go out and buy a brand new computer which will come with Windows 10 (or windows 8 which can then be upgraded automatically) for under $400.
One last thing, regardless of what you do next, that icon will remain there so get used to it!