Don’t know if this is possible on Windows or iOS but on Linux you can see if someone used your computer without your knowledge.
last command will show successful logins to your system.
journalctl --list-boots shows the boots your system went through.
lastb lists failed attempts to your system.
aureport is a tool to audit your logs in