I am not an experienced Linux user. I am simply listing what I did to get this to work for me. This was mostly trial and error based. I am not recommending this one way or another. There may be proper way to resolve the problem. @Varun Narravula's reply may be more appropriate. Note that I am using Legacy/BIOS.
I tried commands in the following order:
grub2-mkconfig -o /boot/grub2/grub.cfg
then
os-prober
os-prober did not return anything.
Then I tried to see if I could mount the NTFS systems.
To do that I needed to install ntfs-3g. But for ntfs-3g, EPEL Repo is a prerequisite.
Please refer to the following:
https://www.tecmint.com/how-do-i-access-or-mount-windows-ntfs-partition-in-linux/
I installed EPEL Repo on CentOS 7.x
yum search epel-release
yum info epel-release
yum install epel-release
(I did not actually run a yum update)
Then installed ntfs-3g
yum -y install ntfs-3g
Then
yum install fuse
modprobe fuse
I could see the NTFS file systems with
fdisk -l
(I did not actually mount the NTFS systems.) After this, I ran
os-prober
This did list Windows 10. Final step, I ran again
grub2-mkconfig -o /boot/grub2/grub.cfg
Not sure if the last step was necessary. When I rebooted my machine Windows 10 option was available. I am not sure if the steps I did related to mounting made any difference.