5000 clients: for the database about 2-5 GB should be enough
Scanning service: most important is multiple processors/cores to improve speed, Ram is not important.
Database server: multiple processors/cores + 2-4 GB Ram.
You can always tweak the amount of simultaneous scans.
This way your hardware can follow but the scanning will take longer to process all computers.