What I want to do is just isolate the computer name ( Hostname ) from SYS(0)
Well, that's working without word count nor getwordnum, as you already discovered, you have GETENV("COMPUTERNAME")
On the other end of it, the computername is not necessarily the host name a computer has on the internet, it's just a name for the LAN, not necessarily the whole internet. I wonder what that part of it is about, maybe the LAN name of a computer is useful for you, I wonder what for you need it, though.
so that I can limit a very specific functionality on some specific PCs
Well, in that regard doing it by computer name is not very efficient, even if you could limit the users ability to change the computer name.
To only allow a feature to be used on some computers, the usual thing to do is using a serial number, but anything you choose is possible to be changed, so the only way you can control this is by making the verification with a server only you have under control, the client then needs to pass a verification on that server. Even that has it's problems as traffic to your server (like a http request, for example) could be redirected to a local server replacement - a proxy acting as your server. So even establishing some verification scheme involving a server can be sabotaged. Especially if it becomes known the response just has to be yes, no matter how strong cryptographic verfication schemes are used.
The best software or feature protection can be granted by a hardware dongle. It's most convenient for a client to keep and reuse, whenever a computer change is necessary and still is something harder to crack by something like a proxy. Hackers also try to attack dongles, but dongles got more complex than just providing a valid answer to the right input to allow usage, according to a vendor, who held a hacker contest they couldn't crack their latest dongle to claim a 20,000 EUR reward. Not advertising here, but if you're serious you could find it.
Anyway, depends on your outset, whether the computername is good enough. In your own LAN you could quite easily disable users to change it to gain the feature. If you want a customer installing your software to bind a feature to a computername, that doesn't prevent them to name multiple computers the same. If you don't tell them and simply store the computername somewhere for your verification then that's the weak point of that secret, isn't it? So even such things that you keep secret are not unable to be broken. Another point is that the check in your software could be circumvented and VFP can be decompiled, even with protection like that of refox.