Searching YouTube for “download Battlefront 2 for free” is the wrong route — those videos almost always link to malware, and the game is still commercially available, so there is no reason to risk it.
The original 2005 Battlefront II is sold digitally on Steam and GOG, frequently at a steep discount, and it runs on modern PCs with a little tweaking. The 2017 reboot of the name is also on Steam and console stores, though it is a very different game.
If cost is the issue, wait for a sale. Both titles drop to a few pounds regularly, which is cheaper than a malware cleanup.