According to the majority of the scholars, it is permissible to draw anything that is non-living and does not have a soul.
لا بأس بتصوير الأشياء التي يصنعها البشر، كصورة المنزل والسيارة والسفينة والمسجد وغير ذلك اتفاقا
There is nothing wrong with making images of things that are made by man, such as homes, cars, ships or mosques etc. This is agreed upon.
لا بأس بتصوير الجمادات التي خلقها الله تعالى - على ما خلقها عليه - كتصوير الجبال والأودية والبحار، وتصوير الشمس والقمر والسماء والنجوم، دون اختلاف بين أحد من أهل العلم، إلا من شذ
There is nothing wrong with images of inanimate things that Allah has created, such as images of mountains, valleys and seas or images of the sun, moon, sky and stars. There is no difference on this except rare exceptions.
جمهور الفقهاء على أنه لا بأس شرعا بتصوير الأعشاب والأشجار والثمار وسائر المخلوقات النباتية، وسواء أكانت مثمرة أم لا، وأن ذلك لا يدخل فيما نهي عنه من التصاوير. ولم ينقل في ذلك خلاف، إلا ما روي عن مجاهد أنه رأى تحريم تصوير الشجر المثمر دون الشجر غير المثمر
According to the majority of the jurists, there is nothing wrong with images of grass, trees, fruits and all plants, be they fruit bearing or otherwise. There is no difference of opinion recorded on this except the narration regarding Mujahid, that he considered images of fruit bearing trees to be forbidden
This is because several of the hadith that prohibit images are specific to images of beings with souls. For example:
إنها ثلاث لن يلج ملك ما دام فيها أبدا واحد منها: كلب أو جنابة أو صورة روحصورة روح
There are three things, such that when one of them is with you no angel will enter upon you: a dog, janabah, an image of a living thing
And the hadith that says that a person would be told to give a soul to the image they made. This implies that the image of something that originally does not have a soul would be permitted:
من صور صورة في الدنيا كلف يوم القيامة أن ينفخ فيها الروحينفخ فيها الروح
Whoever makes a picture in this world will be asked to put life into it on the Day of Resurrection
And the hadith where Gabriel told the Prophet to deform a statue so that it looks like a tree. This implies that the image of a tree is permissible as that form was retained:
فمر برأس التمثال الذي بالباب فليقطع فيصير كهيئة الشجرةفيصير كهيئة الشجرة
So order the head of the image which is in the house to be cut off so that it resembles the form of a tree
Anything man-made was permitted to make in the first place, so making an image of it is also permitted.