Yes you can, no I wouldn't. Things that run decently on that pc were designed around WinXp maybe breaking into Vista and therefore Win7. All the drivers, games, programs, software will be best used on 16/32 bit OS. A 64bit OS is just going to create issues with incompatibility.
Win10 needs a minimum of 4Gb, 8Gb for more modern games as they run 3-5Gb ram by themselves. 4Gb is going to be very restrictive.
With that, if all you plan on doing is websurfing, email etc it'll work but with the speeds of the components it's going to be very slow, most likely slower than XP or 7