You are looking for proctoring software/system that can be works/integrates with Moodle. It may not be cheap.
Here you could find some info and names of products that you can check:
https://www.listedtech.com/blog/proctoring
Here you could find some info and names of products that you can check:
https://www.listedtech.com/blog/proctoring