The severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2), better known as COVID-19, has become a current threat to humanity. The second wave of the SARS-CoV-2 virus has hit many countries, and the confirmed COVID-19 cases are quickly spreading. Therefore, the epidemic is still passing the terrible stage. Having idiopathic pulmonary fibrosis (IPF) and chronic obstructive pulmonary disease (COPD) are the risk factors of the COVID-19, but the molecular mechanisms that underlie IPF, COPD, and CVOID-19 are not well understood. Therefore, we implemented transcriptomic analysis to detect common pathways and molecular biomarkers in IPF, COPD, and COVID-19 that help understand the linkage of SARS-CoV-2 to the IPF and COPD patients. Here, three RNA-seq datasets (GSE147507, GSE52463, and GSE57148) from Gene Expression Omnibus (GEO) is employed to detect mutual differentially expressed genes (DEGs) for IPF, and COPD patients with the COVID-19 infection for finding shared pathways and candidate drugs. A total of 65 common DEGs among these three datasets were identified. Various combinatorial statistical methods and bioinformatics tools were used to build the protein-protein interaction (PPI) and then identified Hub genes and essential modules from this PPI network. Moreover, we performed functional analysis under ontologies terms and pathway analysis and found that IPF and COPD have some shared links to the progression of COVID-19 infection. Transcription factors-genes interaction, protein-drug interactions, and DEGs-miRNAs coregulatory network with common DEGs also identified on the datasets. We think that the candidate drugs obtained by this study might be helpful for effective therapeutic in COVID-19.