Nurses can assess a patient's dietary needs through a comprehensive nutritional assessment, which involves gathering information about the patient's medical history, current medications, dietary habits, and lifestyle factors. Tools such as the Malnutrition Universal Screening Tool (MUST) or the Mini Nutritional Assessment (MNA) can be utilized to identify patients at risk of malnutrition.