I think your question is very general, there are many guides on how to find ub genes, including a lot of questions here on this forum. If you don't provide more context is diffiulto to understand the problem you are facing and help you.
Anyway here is an example of an old question on inding hub genes that can be the starting point: how to choose hub genes in wgcna