It appears that the BM (X Windows) bitmap image format is supported in XnView and as such this software can be used to export it the file to standard JPEG format. The resulting quality will of course depend on the original .bm source and will never improve. In any case, bm to jpg conversion should be doable.
Open BM file Open JPG file