You can also set a toggle to beep whenever you press the Cap Lock or Num Lock keys:
CONTROL PANEL>EASE OF ACCESS
MAKE KEYBOARD EASIER TO USE>Toggle Num Lock tone
It gives a low beep when pressing Cap Lock or Num Lock is turning the feature off, and a higher pitched beep when pressing the key is turning it on. So if you accidentally press the lock key, you'll know it.