Corona virus project

I want to make a project in terms of corono virus. find the people in contact by finding the signals of the phones in the environment and who they belong to.

Is something like this possible?
Can people in the environment know their phones?

No, you cannot do that. You can use an app with a CloudDB or FirebaseDB to determine if individuals using your app at the moment are nearby provided those individuals provide location information to your app. You cannot detect any phone.