I was wondering if antivirus software can detect when a PC get's
hooked to BeEF.
I am afraid you don't understand what BeEF is. BeEF is a browser exploitation framework that can inject malicious JavaScript into a website with XSS vulnerability. That in no way means hooking your PC, rather more like hooking your browser tab.
Can an antivirus detect that?
No, antivirus won't be good to detect such a thing.
However BeEF also has modules for exploiting browser vulnerabilities to gain code execution, but unless you are using a outdated/old browser you don't have to worry about it. Also antivirus (such as Windows Defender) is pretty good at spotting MSF shellcode, even in memory.