No Windows OS has built in anti-virus. I do hope you haven't been using your Windows 7 system without any anti-virus installed for all this time you have had it.
As for anti-spyware, it should have Windows Defender installed. Use the Start > Search box to find if yours does. But even if it does, it is often considered lightweight and disabled in favor of something else.
<font size="5">Does Windows 7 have built-in anti-virus, anti-spyware protection? Thank you. user470